#include "area_coords.h"

/** Ze tridy s nastavenim precte nastaveni jednotlivych anten a zinicializuje mapu. 
 */
void Coordinates::setAntenaPositions() {
	// set the desired number of cells
	setCellCount(options->antenas.size());
	// set the antena positions and demands
	size = 0;
	int current_cell = 0;
	for (std::list<Antena>::const_iterator i = options->antenas.begin(); i != options->antenas.end(); ++i) {
		cells[current_cell].x = i->x;
		cells[current_cell].y = i->y;
		cells[current_cell].set(i->demand, size);
		size += i->demand;
		++current_cell;
	}
	countDistances();
	initialize(size);
}
